import sys
import pygame
# settings 包含窗口宽度，高度，背景颜色等信息
from settings import Settings
from ship import Ship

def run_game():

    pygame.init()
    ai_settings = Settings()
    screen = pygame.display.set_mode((ai_settings.screen_width, ai_settings.screen_height))
    
    pygame.display.set_caption("外星人入侵")

    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()

        screen.fill(ai_settings.bg_color)

        pygame.display.flip()


run_game()